<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action = "/school" method="post">
    <label>学生姓名：</label>
    <label>
        <input type="text" name="name" />
    </label>
    <label>地址：</label>
    <label>
        <input type="text" name="dizhi" />
    </label>
    <input type="submit" value="查询"/>
</form>
<table>
    <thead>
    <tr>
        <th>学号</th>
        <th>学生姓名</th>
        <th>性别</th>
        <th>学院</th>
        <th>序号</th>
        <th>入学时间</th>
        <th>住址</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="school:${school}">
        <td th:text="${school.ID}"></td>
        <td th:text="${school.name}"></td>
        <td th:text="${school.sex}"></td>
        <td th:text="${school.xueyuan}"></td>
        <td th:text="${school.num}"></td>
        <td th:text="${school.time}"></td>
        <td th:text="${school.dizhi}"></td>
        <td><a th:href="@{/school/update/{id}(id=${school.ID})}">更改</a></td>
        <td><a th:href="@{/school/delete/{id}(id=${school.ID})}">删除</a></td>
    </tr>
    </tbody>
    <div><a href="/school/create">新建学生信息</a></div>
</table>
</body>
</html>